package com.itheima.stock.controller;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/quot/stock/business")
public class StockBusinessController {

    @Autowired
    private StockBusinessService stockBusinessService;

    @GetMapping("/all")
    public List<StockBusiness> findAll() {
        return stockBusinessService.findAll();
    }
}
